package com.zhijian.warehouse.manage.dao;


import com.zhijian.warehouse.manage.entity.po.Dictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DictionaryMapper {
    
    List<Map<String, Object>> selectPageData(@Param("param") Map<String, Object> paramMap);
    
    /**
     * 根据字典表name,code获取value值
     *
     * @param name
     * @param code
     * @return
     */
    Dictionary selectByNameCode(@Param("name") String name, @Param("code") Integer code);

    /**
     * 根据名称获取字典列表
     * @param names
     * @return
     */
    List<Dictionary> selectByNames(@Param("names") List<String> names);

    List<Map<String,Object>> selectByName(@Param("name") String name);

    /**
     * 根据字典表name, value获取code
     *
     * @param name
     * @param value
     * @return
     */
    Dictionary selectByNameValue(@Param("name") String name, @Param("value") String value);
}
